﻿using DotNetOpenAuth.AspNet;
using DotNetOpenAuth.AspNet.Clients;
using DotNetOpenAuth.OpenId;
using Microsoft.Web.WebPages.OAuth;

namespace Home.Site.App_Start
{
    public static class AuthConfig
    {
        public static void RegisterAuth()
        {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            //OAuthWebSecurity.RegisterMicrosoftClient(
            //    clientId: "",
            //    clientSecret: "");

            //OAuthWebSecurity.RegisterTwitterClient(
            //    consumerKey: "",
            //    consumerSecret: "");

            //OAuthWebSecurity.RegisterFacebookClient(
            //    appId: "",
            //    appSecret: "");

            //OAuthWebSecurity.RegisterGoogleClient();

            OAuthWebSecurity.RegisterFacebookClient(
             appId: "507157839297328",
             appSecret: "9494bc587e615aa0e395dd2312783c04");

            //OAuthWebSecurity.RegisterClient(
            //    new VkontakteClient(appId: VKAccessor.AppID, appSecret: VKAccessor.AppKey), "Вконтакте", null
            //);
          }
    }
}
